// 购物车页面

//首页的样式less文件
@import "media";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background: #F2F2F2;
}

// 头部
@baseFont: 50;

header {
    width: 15rem;
    height: (100rem / @baseFont);
    background-color: white;
    line-height: (100rem / @baseFont);

    .shopping {
        margin-left: (325rem / @baseFont);
        font-size: (35rem / @baseFont);

    }

    .del {
        font-size: (25rem / @baseFont);
        margin-left: (220rem / @baseFont);

    }
}

//主体

.main {
    width: 15rem;
    margin: (15rem / @baseFont) 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    .mian-content {
        width: (690rem / @baseFont);
        height: (190rem / @baseFont);
        border-radius: (15rem / @baseFont);
        background-color: white;
        margin-top: (3rem / @baseFont);

        .yuan {
            width: (35rem / @baseFont);
            height: (35rem / @baseFont);
            border-radius: 50%;
            background-color: #fcfcfc;
            border: 1px solid #e6e6e6;
            margin-left: (20rem / @baseFont);
            margin-top: (77rem / @baseFont);
            float: left;
        }

        img {
            width: (150rem / @baseFont);
            height: (150rem / @baseFont);
            margin-left: (15rem / @baseFont);
            margin-top: (20rem / @baseFont);
            float: left;
        }

        .mian-content-left {
            width: (430rem / @baseFont);
            height: (150rem / @baseFont);
            margin-left: (20rem / @baseFont);
            margin-top: (20rem / @baseFont);
            float: left;
            position: relative;

            span {
                font-size: (15rem / @baseFont);
                position: absolute;
                top: 0;
                left: 0;
            }

            p {
                font-size: (16rem / @baseFont);
                position: absolute;
                bottom: 0;
                left: 0;
                color: red;
            }

            .shop {
                width: (174rem / @baseFont);
                height: (42rem / @baseFont);
                font-size: (16rem / @baseFont);
                position: absolute;
                bottom: 0;
                right: 0;
                border-radius: (8rem / @baseFont);
                border: 1px solid #e6e6e6;
                text-align: center;
                line-height: (42rem / @baseFont);

                .shop-left {
                    width: (49rem / @baseFont);
                    height: (42rem / @baseFont);
                    float: left;
                    font-size: (25rem / @baseFont);
                    letter-spacing: -3px;
                }

                .shop-center {
                    border-right: 1px solid #e6e6e6;
                    border-left: 1px solid #e6e6e6;
                    width: (70rem / @baseFont);
                    height: (42rem / @baseFont);
                    float: left;
                    font-size: (25rem / @baseFont);
                }

                .shop-right {
                    width: (49rem / @baseFont);
                    height: (42rem / @baseFont);
                    float: left;
                    font-size: (25rem / @baseFont);
                }
            }
        }
    }
}

//精选推荐
.banner {
    width: (225rem / @baseFont);
    height: (30rem / @baseFont);
    color: red;
    font-size: (25rem / @baseFont);
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: (20rem / @baseFont);

    .line {
        width: (35rem / @baseFont);
        height: (1rem / @baseFont);
        background-color: red;

    }

    .yuan {
        width: (6rem / @baseFont);
        height: (6rem / @baseFont);
        background-color: red;
        border-radius: 50%;

    }

    span {

        margin: 0 (20rem / @baseFont)
    }
}

//recommend（推荐）
.recommend-wrepper {
    margin: 0 auto;
    width: (690rem / @baseFont);
    height: (314rem / @baseFont);
    display: flex;
    justify-content: space-between;


    .recommend-left {
        width: (336rem / @baseFont);
        height: (314rem / @baseFont);
        border-radius: (5rem / @baseFont) (5rem / @baseFont) 0 0;

        img {
            width: (336rem / @baseFont);
            height: (314rem / @baseFont);
        }
    }

    .recommend-right {
        width: (336rem / @baseFont);
        height: (314rem / @baseFont);

        img {
            width: (336rem / @baseFont);
            height: (314rem / @baseFont);
        }
    }
}

// settlement（结算）
.settlement {
    width: 15rem;
    height: (115rem / @baseFont);
    background-color: white;

    .yuan {
        width: (35rem / @baseFont);
        height: (35rem / @baseFont);
        border-radius: 50%;
        background-color: #fcfcfc;
        border: 1px solid #e6e6e6;
        margin-left: (20rem / @baseFont);
        margin-top: (38rem / @baseFont);
        float: left;
    }

    .choice {
        margin-left: (25rem / @baseFont);
        margin-top: (40rem / @baseFont);
        font-size: (25rem / @baseFont);
        float: left;
    }

    .sum {
        margin-left: (200rem / @baseFont);
        margin-top: (40rem / @baseFont);
        font-size: (25rem / @baseFont);
        float: left;
        color: rgb(71, 71, 71);
    }

    .price {
        margin-left: (10rem / @baseFont);
        margin-top: (40rem / @baseFont);
        font-size: (25rem / @baseFont);
        color: red;
        float: left;
    }

    .button {
        margin-left: (30rem / @baseFont);
        margin-top: (22rem / @baseFont);
        font-size: (26rem / @baseFont);
        width: (160rem / @baseFont);
        height: (70rem / @baseFont);
        border-radius: (35rem / @baseFont);
        background-color: red;
        text-align: center;
        line-height: (70rem / @baseFont);
        color: white;
        float: left;
        a{
            color: white;
        }
    }
}

// 底部功能区
.footer{
    width: 15rem;
    height: (120rem / @baseFont);
    background: #F2F2F2;
   
}
.footer-shop {
    width: 15rem;
    height: (100rem / @baseFont);
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: (20rem / @baseFont);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    a:hover{
        color: red;
    }
    a {
       color: black;
       width:  (80rem / @baseFont);
       display: flex;
       justify-content: space-around;
       align-items: center;
       flex-wrap: wrap;

        img {
            width: (42rem / @baseFont);
            height: (42rem / @baseFont);
        }
        span{
            display: block;
            font-size: (20rem / @baseFont);
        }
    }
}